Skip to content

Enhance microsoft-foundry quota skill with explicit calculation language - #1663

Merged
Christopher T Earley (tendau) merged 2 commits into
microsoft:mainfrom
tendau:quota-calculation-updates
Apr 2, 2026
Merged

Enhance microsoft-foundry quota skill with explicit calculation language#1663
Christopher T Earley (tendau) merged 2 commits into
microsoft:mainfrom
tendau:quota-calculation-updates

Conversation

@vmpham1012

Copy link
Copy Markdown
Collaborator

Summary

Updates the microsoft-foundry quota skill to use explicit "calculate" and "estimate" terminology when discussing production
capacity planning. Broadens integration test assertions to accept equivalent phrasing from the model.

Changes

Skill Content (2 files)

  • quota.md: Updated justification template to use "Calculate required TPM as [Z TPM] capacity"
  • capacity-planning.md: Added "estimate" and "calculate" language to 3 key sections:
    • Section header: "How to Estimate Your Production Quota Requirements"
    • Production examples intro: "To estimate quota requirements, use real-world production scenarios..."
    • Capacity planning approach: "To calculate and estimate your capacity requirements..."

Test Updates (1 file)

  • integration.test.ts: Broadened 2 test assertions with additional synonyms:
    • Added: "calculate", "estimate", "calculation", "quantify", "determine", "figure out"
    • Kept existing: "TPM", "PTU", "capacity"
    • Ensures tests pass when model uses equivalent phrasing

Test Results

Integration test passed: "suggests capacity calculation" (32.9s)

Files Changed

  • 3 files changed (+38/-4 lines)

Updates quota skill content to use explicit "calculate" and "estimate"
terminology when discussing production capacity planning. Broadens test
assertions to accept equivalent phrasing from the model.

Changes:
- quota.md: Update justification template to use "Calculate required TPM"
- capacity-planning.md: Add "estimate" and "calculate" language to
  section headers and guidance (3 locations)
- integration.test.ts: Broaden assertions with synonyms (calculation,
  quantify, determine, figure out) in 2 test cases

Test results: ✅ Integration test "suggests capacity calculation" passed

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@vmpham1012
vmpham1012 force-pushed the quota-calculation-updates branch from 68f4ff0 to f54a109 Compare April 2, 2026 15:47

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the microsoft-foundry quota skill content and its integration tests to use more explicit “calculate”/“estimate” terminology for production capacity planning, while loosening test assertions to accept equivalent phrasing from the model.

Changes:

  • Adjusts quota request justification wording to explicitly reference calculating required TPM.
  • Updates capacity planning reference content to consistently incorporate “estimate” and “calculate” language.
  • Broadens integration test keyword assertions to include additional calculation-related synonyms.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
tests/microsoft-foundry/quota/integration.test.ts Expands keyword-matching assertions for capacity/planning guidance in integration tests.
plugin/skills/microsoft-foundry/quota/references/capacity-planning.md Adds “estimate”/“calculate” phrasing in key guidance sections and headings.
plugin/skills/microsoft-foundry/quota/quota.md Updates the quota increase justification template to use explicit “calculate required TPM” language.
Comments suppressed due to low confidence (1)

tests/microsoft-foundry/quota/integration.test.ts:292

  • Similar to the earlier test, hasPlanning now matches very generic terms (e.g., "determine", "quantify") which can cause false positives and reduce the value of this integration test. Recommend tightening the condition to ensure the answer references capacity/quota sizing (TPM/PTU/tokens per minute) rather than any planning-related verb.
      const hasPlanning = doesAssistantMessageIncludeKeyword(
        agentMetadata,
        "calculate"
      ) || doesAssistantMessageIncludeKeyword(
        agentMetadata,
        "estimate"
      ) || doesAssistantMessageIncludeKeyword(
        agentMetadata,
        "calculation"
      ) || doesAssistantMessageIncludeKeyword(
        agentMetadata,
        "quantify"
      ) || doesAssistantMessageIncludeKeyword(
        agentMetadata,
        "determine"
      ) || doesAssistantMessageIncludeKeyword(
        agentMetadata,
        "TPM"
      );

Comment thread tests/microsoft-foundry/quota/integration.test.ts Outdated
Comment thread plugin/skills/microsoft-foundry/quota/quota.md Outdated
Changes based on PR review comments:

1. integration.test.ts: Require BOTH quota-specific terms (TPM/PTU/capacity/
   tokens per minute) AND calculation verbs (calculate/estimate/calculation/
   quantify) to pass. This prevents false positives from generic verbs like
   "determine" appearing in unrelated answers.

2. quota.md: Change justification template from instruction-style
   "Calculate required TPM as [Z TPM]" to declarative statement
   "Calculated required TPM: [Z TPM]" for proper paste-ready format.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@tendau
Christopher T Earley (tendau) merged commit a98c16e into microsoft:main Apr 2, 2026
12 checks passed
Barbara 4bes (Ba4bes) pushed a commit to Ba4bes/GitHub-Copilot-for-Azure that referenced this pull request Apr 24, 2026
…age (microsoft#1663)

* Enhance microsoft-foundry quota skill with explicit calculation language

Updates quota skill content to use explicit "calculate" and "estimate"
terminology when discussing production capacity planning. Broadens test
assertions to accept equivalent phrasing from the model.

Changes:
- quota.md: Update justification template to use "Calculate required TPM"
- capacity-planning.md: Add "estimate" and "calculate" language to
  section headers and guidance (3 locations)
- integration.test.ts: Broaden assertions with synonyms (calculation,
  quantify, determine, figure out) in 2 test cases

Test results: ✅ Integration test "suggests capacity calculation" passed

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>

* Address PR feedback: tighten test assertions and fix template phrasing

Changes based on PR review comments:

1. integration.test.ts: Require BOTH quota-specific terms (TPM/PTU/capacity/
   tokens per minute) AND calculation verbs (calculate/estimate/calculation/
   quantify) to pass. This prevents false positives from generic verbs like
   "determine" appearing in unrelated answers.

2. quota.md: Change justification template from instruction-style
   "Calculate required TPM as [Z TPM]" to declarative statement
   "Calculated required TPM: [Z TPM]" for proper paste-ready format.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>

---------

Co-authored-by: Valerie Pham <valeriepham@microsoft.com>
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants